@extends('admin.layout.main')

@section('content')
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="#">商家相关设置</a>
	</li>
	<li class="active"><a href="#">广告单价格区间列表</a></li>
</ul><!-- /.breadcrumb -->

<div class="nav-search" id="nav-search">
	<form class="form-search">
		<span class="input-icon">
		<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
			<i class="ace-icon fa fa-search nav-search-icon"></i>
		</span>
	</form>
</div><!-- /.nav-search -->
</div>
<div class="page-content">
	<div class="row">
		<div class="col-xs-12">
			<!-- PAGE CONTENT BEGINS -->
			<div class="row">
				<div class="col-xs-12">
					<div class="clearfix">
						<div class="pull-right tableTools-container"></div>
					</div>
					<div class="table-header">
						<a href="/admin/create_price_section"><span class="menu-text orange"> 新增价格 </span></a>
					</div>

					<!-- div.table-responsive -->

					<!-- div.dataTables_borderWrap -->
					<div>
						<table id="dynamic-table" class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th>序号</th>
									<th>标题</th>
									<th>创建时间</th>
									<th>操作</th>
								</tr>
							</thead>

							<tbody>
								@foreach($data as $key => $val)
								<tr>
									<td>
										<a href="#">{{$key+1}}</a>
									</td>
									<td>{{$val->value}}</td>
									<td>{{$val->created_at}}</td>
									<td>
										<a href="/admin/edit_price_section?id={{$val->getKey()}}">
                                            <button class="btn btn-xs btn-info">
												<i class="ace-icon fa fa-pencil bigger-120">修改</i>
											</button>
                                        </a>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<a href="/admin/delete_price_section?id={{$val->getKey()}}">
                                            <button class="btn btn-xs btn-danger">
												<i class="ace-icon fa fa-pencil bigger-120">删除</i>
											</button>
                                        </a>
									</td>
								</tr>
								@endforeach
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<!-- PAGE CONTENT ENDS -->
		</div><!-- /.col -->
	</div><!-- /.row -->
</div><!-- /.page-content -->

@endsection
